public void RealShowExtendedAkas_ValidId_ReturnAkas() { //Arrange //Act var result = _apiClientTrue.GetAkas(1); result.Wait(); //Assert Assert.AreNotEqual(null, result.Result); }
public void ShowExtendedAkas_ValidId_ReturnAkas() { //Arrange _showExtendedService.GetAkas(Arg.Any <int>()) .Returns(_jsonSerializeService.SerializeObject(_mockAkaDtos)); //Act var akas = _apiClientMock.GetAkas(1); //Assert Assert.AreEqual(_jsonSerializeService.SerializeObject(_mockAkaDtos), _jsonSerializeService.SerializeObject(akas.Result)); }