Beispiel #1
0
        public void RetriveValid()
        {
            var orderRepository = new OrderRepository();

            var expected = new Order(2)
            {
                OrderDate = new DateTimeOffset(DateTime.Now.Year, 7, 13, 10, 00, 00, new TimeSpan(7, 0, 0)),
            };

            var actual = orderRepository.Retrive(2);

            Assert.AreEqual(expected.OrderDate, actual.OrderDate);
        }
Beispiel #2
0
        public void RetriveTest()
        {
            //Arrange
            var orderRepository = new OrderRepository();
            var expected        = new Order(10);

            expected.OrderDate = new DateTimeOffset(DateTime.Now.Year, 4, 14, 10, 00, 00, new TimeSpan(7, 0, 0));

            //Act
            var actual = orderRepository.Retrive(10);

            //Assert
            Assert.Equal(expected.OrderDate, actual.OrderDate);
        }