public void Validating_Members_And_Returning_Exception_When_Saving_A_Session()
        {
            var session = new BrilhaMuito.Domain.Account.Entities.Session(Guid.NewGuid(), Guid.NewGuid(), "Dev", "Dev1",
                                                                          new Interval(DateTime.Now.AddDays(-7), DateTime.Now), new List <Guid>
            {
            }, string.Empty, true);

            _mockSession.Setup(x => x.Save(It.IsAny <BrilhaMuito.Domain.Account.Entities.Session>()));
            var sessionService = new SessionService(_mockSession.Object, _mockUser.Object, _mockMember.Object);

            Assert.Throws <ArgumentException>(() => sessionService.Save(session));
            sessionService.Should().NotBeNull();
        }
        public void Saving_And_Validating_Session_Registration()
        {
            var session = new BrilhaMuito.Domain.Account.Entities.Session(Guid.NewGuid(), Guid.NewGuid(), "Dev mais Dev", "DEV PLENO",
                                                                          new Interval(DateTime.Now.AddDays(-3), DateTime.Now), new List <Guid>
            {
                Guid.NewGuid(),
                Guid.NewGuid()
            }, string.Empty, true);

            _mockSession.Setup(x => x.Save(It.IsAny <BrilhaMuito.Domain.Account.Entities.Session>()));
            var sessionService = new SessionService(_mockSession.Object, _mockUser.Object, _mockMember.Object);

            sessionService.Save(session);
            sessionService.Should().NotBeNull();
        }