public PetsModel Get() { var response = _ownerClient.GetOwnerDetails(url); var owners = _jsonTransformer.ConvertFromJson(_httpResponseTransformer.TransformToJson(response, _logger)); return(PetsService.CreatePetsModel(owners)); }
public void Given_ListOfOwnersWithOnlyDogs_CreatePetsModel_Returns_ModelWithGenders() { var result = PetsService.CreatePetsModel(CreateDogOwners()); result.Should().BeEquivalentTo(CreateEmptyPetsModelWithGenders()); }
public void Given_EmptyListOfOwners_CreatePetsModel_Returns_EmptyModel() { var result = PetsService.CreatePetsModel(new List <Owner>()); result.Should().BeEquivalentTo(CreateEmptyPetsModel()); }
public void Given_ListOfOwners_CreatePetsModel_Returns_PetsModel() { var result = PetsService.CreatePetsModel(CreateOwners()); result.Should().BeEquivalentTo(CreatePetsModel()); }