public async Task ThenTheStoreDetailsShouldBeCreatedAsFollowAsync(Table table) { _profilePostUpdate = await GetCreatedProfile(_context.ApiResult); var expectedProfile = table.CreateSet <StoreProfileDto>().FirstOrDefault(); CompareStoreProfile(expectedProfile, _profilePostUpdate).Should().BeTrue(); }
public async Task GivenTomCreatesTheFollowingStoreAddressAsync(Table table) { _profileRequest.Address = table.CreateSet <AddressDto>().FirstOrDefault(); var apiResult = await _apiClient.PostAsync("api/storeprofile", _profileRequest); var storeProfile = await GetCreatedProfile(apiResult); _profilePreUpdate = storeProfile; }
private bool CompareStoreProfile(StoreProfileDto expected, StoreProfileDto actual) { return(expected.StoreName == actual.StoreName && expected.ContactEmail == actual.ContactEmail && expected.SenderEmail == actual.SenderEmail && expected.BusinessName == actual.BusinessName && expected.PhoneNumber == actual.PhoneNumber && expected.TimeZoneId == actual.TimeZoneId && expected.UnitSystem == actual.UnitSystem && expected.WeightUnit == actual.WeightUnit && expected.LengthUnit == actual.LengthUnit); }
public void GivenTomEntersTheFollowingStoreProfile(Table table) { _profileRequest = table.CreateSet <StoreProfileDto>().FirstOrDefault(); }