public async Task ListData_GET_SetPaging(int skip, int take) { // arrange MockLanguageService.Setup_GetLanguages_Returns_LanguageReadListResponse_Success(); // act var result = (JsonResult)await SystemUnderTest.ListData(skip, take); // assert AssertView <DataResult>(result); AssertPagingInfo(result); }
public void SelectData_GET() { // arrange MockLanguageService.Setup_GetLanguages_Returns_LanguageReadListResponse_Success(); // act var result = SystemUnderTest.SelectData(UidOne); // assert AssertView <JsonResult>(result); MockLanguageService.Verify_GetLanguages(); }
public void ListData_GET() { // arrange MockLanguageService.Setup_GetLanguages_Returns_LanguageReadListResponse_Success(); // act var result = SystemUnderTest.ListData(One, Two); // assert AssertViewAndHeaders(result, new[] { "language_name", "2_char_code", "3_char_code", "icon", "" }); MockLanguageService.Verify_GetLanguages(); }