public void SetUp() { this.resource = new CartonTypeResource { Description = "Desc" }; this.result = this.Sut.Add(this.resource); }
public void SetUp() { this.resource = new CartonTypeResource { Name = "cartonName", Description = "Desc", Width = 2m, Depth = 3m, Height = 4m }; this.result = this.Sut.Add(this.resource); }
public void SetUp() { this.requestResource = new CartonTypeResource { Name = "c1" }; var cartonType = new CartonType("c1", 1, 2, 3); this.CartonTypeService.Add(Arg.Any <CartonTypeResource>()) .Returns(new CreatedResult <CartonType>(cartonType) { Data = cartonType }); this.Response = this.Browser.Post( "/products/maint/carton-types", with => { with.Header("Accept", "application/json"); with.Header("Content-Type", "application/json"); with.JsonBody(this.requestResource); }).Result; }