BudgetAnalyser.Engine.UnitTest.Services.ApplicationDatabaseServiceTest.LoadDatabaseAsync_ShouldThrow_WhenServiceThrowsNotSupportedException C# (CSharp) Method

LoadDatabaseAsync_ShouldThrow_WhenServiceThrowsNotSupportedException() private method

private LoadDatabaseAsync_ShouldThrow_WhenServiceThrowsNotSupportedException ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task
        public async Task LoadDatabaseAsync_ShouldThrow_WhenServiceThrowsNotSupportedException()
        {
            LoadDatabaseSetup();

            this.mockService1.Setup(m => m.LoadAsync(It.IsAny<ApplicationDatabase>())).Throws<NotSupportedException>();

            var appDb = await this.subject.LoadAsync("Foo");
        }