Beispiel #1
0
        public async Task ThenTheStoreDetailsShouldBeCreatedAsFollowAsync(Table table)
        {
            _profilePostUpdate = await GetCreatedProfile(_context.ApiResult);

            var expectedProfile = table.CreateSet <StoreProfileDto>().FirstOrDefault();

            CompareStoreProfile(expectedProfile, _profilePostUpdate).Should().BeTrue();
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 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);
 }
Beispiel #4
0
 public void GivenTomEntersTheFollowingStoreProfile(Table table)
 {
     _profileRequest = table.CreateSet <StoreProfileDto>().FirstOrDefault();
 }