public void New_orderAlteration_is_not_null() { OrderAlteration orderAlteration = null; // Arrange orderAlteration = new OrderAlteration(1, -5, 0, 5, Status.Created, "testCustomer"); // Assert Assert.NotNull(orderAlteration); }
public async Task <bool> Handle(CreateOrderAlterationCommand request, CancellationToken cancellationToken) { if (request == null) { throw new NullReferenceException("CreateOrderAlterCommand is null!"); } OrderAlteration orderALteraion = new OrderAlteration(request.LeftSleeve, request.RightSleeve, request.LeftTrouser, request.RightTrouser, Status.Created, request.CustomerName); await _orderAlterationRepository.CreateAsyncUoW(orderALteraion); await _orderAlterationRepository.SaveChangesAsync(); return(true); }