public static AddressBuilder Simple() { return(Default() .WithLine1(() => GetRandom.String(1, 50)) .WithCity(() => GetRandom.String(1, 50)) .WithState(() => StateBuilder.Simple().Build()) .WithPostalCode(() => GetRandom.String(10, 10))); }
public static AddressBuilder JoeCustomerShipping() { return(Simple() .WithLine1("123 Any St.") .WithLine2("Suite 456") .WithCity("Columbus") .WithState(() => StateBuilder.Simple().Build()) .WithPostalCode("43210")); }
protected override void Given() { base.Given(); var model = StateBuilder.Simple().Build(); _model = SUT.AddAsync(AdminUserId, model).Result; Assert.IsNotNull(SUT.GetAsync(AdminUserId, _model.Id).Result); }
protected override void Given() { base.Given(); _models = new List <State> { StateBuilder.Simple().Build(), StateBuilder.Simple().Build() }; _originalCount = SUT.CountAsync().Result; }
protected override void Given() { base.Given(); _model = StateBuilder.Simple().Build(); }