Exemplo n.º 1
0
        public void Create()
        {
            var expected = new TimeEntry(1, 222, 333, new DateTime(2008, 08, 01, 12, 00, 01), 24);
            var created  = _repository.Create(new TimeEntry(222, 333, new DateTime(2008, 08, 01, 12, 00, 01), 24));

            Assert.Equal(expected, created);
            Assert.Equal(expected, _repository.Find(1));
        }
        public void Create()
        {
            var expected = new TimeEntry(1, 222, 333, new DateTime(2008, 08, 01, 12, 00, 01), 24);

            var created = _repository.Create(new TimeEntry(222, 333, new DateTime(2008, 08, 01, 12, 00, 01), 24));

            expected.Should().BeEquivalentTo(created);
            expected.Should().BeEquivalentTo(_repository.Find(1));
        }
Exemplo n.º 3
0
        public void Create()
        {
            var expected = new TimeEntry(1, 222, 333, Convert.ToDateTime("01/08/2008 12:00:01"), 24);

            var created = _repository.Create(new TimeEntry(222, 333, Convert.ToDateTime("01/08/2008 12:00:01"), 24));

            Assert.Equal(expected, created);
            Assert.Equal(expected, _repository.Find(1));
        }
Exemplo n.º 4
0
        public void Create()
        {
            var expected = new TimeEntry(1, 222, 333, new DateTime(2008, 08, 01, 12, 00, 01), 24);

            var created = _repository.Create(new TimeEntry(222, 333, new DateTime(2008, 08, 01, 12, 00, 01), 24));

            Console.WriteLine("EXP: " + expected.ToString());
            Console.WriteLine("CREATED: " + created.ToString());

            Assert.Equal(expected, created);
            Assert.Equal(expected, _repository.Find(1));
        }