public async Task PutProductUnitPriceAsync() { // Arrange var userInfo = IdentityMocker.GetWarehouseOperatorIdentity().GetUserInfo(); var service = ServiceMocker.GetWarehouseService(userInfo, nameof(PutProductUnitPriceAsync)); var controller = new WarehouseController(null, service); var id = 1; var request = new PutProductUnitPriceRequest { UnitPrice = 14.99m }; // Act var response = await controller.PutProductUnitPriceAsync(id, request) as ObjectResult; var value = response.Value as ISingleResponse <Product>; // Assert Assert.False(value.DidError); }