示例#1
0
        private async Task WhenIAddTheAddress()
        {
            _request = Fixture.Build <AddAddressRequest>()
                       .With(x => x.UserId, _userId)
                       .With(x => x.PostCode, Fixture.Create <string>().Substring(0, 10))
                       .With(x => x.Number, Math.Abs(Fixture.Create <int>()))
                       .Create();

            _replay = await Client.AddAddressAsync(_request);
        }
示例#2
0
        private async Task WhenITryToAddAddress()
        {
            _request = Fixture.Build <AddAddressRequest>()
                       .With(x => x.UserId, _userId)
                       .With(x => x.Number, _number)
                       .With(x => x.Line, _line)
                       .With(x => x.PostCode, _postCode)
                       .Create();

            _replay = await Client.AddAddressAsync(_request);
        }
 private async Task WhenIAddToAddSameAddress()
 {
     _replay = await Client.AddAddressAsync(_request);
 }