Esempio n. 1
0
 public FillingSession StartNewSession()
 {
     var session = new FillingSession { Id = Guid.NewGuid(), IsActive = true };
     this.UnitOfWork.Add(session);
     this.UnitOfWork.Commit();
     return session;
 }
Esempio n. 2
0
        public void FillingSessionDefaultConstructorShouldWork()
        {
            // Act
            var actual = new FillingSession();
            var actualId = actual.Id;
            var actualIsActive = actual.IsActive;

            // Assert
            Assert.IsNotNull(actual);
            Assert.AreEqual(Guid.Empty, actualId);
            Assert.IsTrue(actualIsActive);
        }