public void Constructor_Throws_On_Null_Database()
        {
            //Arrange
            IGEDCOMStore database = null;

            //Act

            //Assert
            // ReSharper disable once ExpressionIsAlwaysNull
            Assert.Throws <ArgumentNullException>(() => new GEDCOMIndividualRepository(database));
        }
        public void Constructor_Overload_Throws_On_Null_Database()
        {
            //Arrange
            IGEDCOMStore database = null;

            //Act

            //Assert
            // ReSharper disable once ExpressionIsAlwaysNull
            Assert.Throws <ArgumentNullException>(() => new GEDCOMUnitOfWork(database));
        }
        public GEDCOMFamilyRepository(IGEDCOMStore database)
        {
            Requires.NotNull(database);

            _database = database;
        }
Exemple #4
0
        public GEDCOMIndividualRepository(IGEDCOMStore database)
        {
            Requires.NotNull(database);

            _database = database;
        }
Exemple #5
0
 private void Initialize(IGEDCOMStore database)
 {
     _database = database;
 }
Exemple #6
0
        public GEDCOMUnitOfWork(IGEDCOMStore database)
        {
            Requires.NotNull("database", database);

            Initialize(database);
        }