Example #1
0
            public Parcel GetParcelByCode(string code)
            {
                var customerRepository = new FakeCustomerRepository();
                var carrierRepository  = new FakeCarrierRepository();
                var customer           = customerRepository.GetById(Guid.NewGuid());
                var carrier            = carrierRepository.GetById(Guid.NewGuid());
                var parcelFake         = new Parcel(
                    new DeliveryInterval(new DateTime(20180202), new DateTime(20180205)),
                    new TrackingCode("123", carrier),
                    carrier,
                    customer,
                    "12341"
                    );

                return(parcelFake);
            }