public async Task Restore_Post_InvalidResponse() { // arrange MockLanguageService.Setup_RestoreLanguage_Returns_LanguageRestoreResponse_Invalid(); // act var result = (JsonResult)await SystemUnderTest.Restore(OrganizationOneProjectOneUid, One); // assert ((CommonResult)result.Value).IsOk.ShouldBe(false); MockLanguageService.Verify_RestoreLanguage(); }
public async Task Restore_Post() { // arrange MockLanguageService.Setup_RestoreLanguage_Returns_LanguageRestoreResponse_Success(); // act var result = await SystemUnderTest.Restore(OrganizationOneProjectOneUid, One); // assert AssertView <JsonResult>(result); MockLanguageService.Verify_RestoreLanguage(); }