Example #1
0
        public async Task GetAddressesByState()
        {
            var addressId = addressRepository.AddAsync(address);

            var dtoAddress = await addressRepository.GetAddressesByStateAsync("NY");

            var firstAddress = dtoAddress.FirstOrDefault();

            Assert.Equal(address.State, firstAddress.State);
        }