示例#1
0
        public void GetParcel_ById_Succeeded()
        {
            int        given    = 123;
            Receipient customer = new Receipient()
            {
                Name       = "Johannes",
                Street     = "Street",
                PostalCode = "A-1230"
            };
            Parcel parcel = new Parcel()
            {
                ID         = given,
                Receipient = customer,
                Sender     = customer
            };
            int id = _dal.Create(parcel);

            Assert.AreEqual(id, given);

            parcel = _dal.GetByID(given);

            Assert.NotNull(parcel);
        }