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; }
public GEDCOMIndividualRepository(IGEDCOMStore database) { Requires.NotNull(database); _database = database; }
private void Initialize(IGEDCOMStore database) { _database = database; }
public GEDCOMUnitOfWork(IGEDCOMStore database) { Requires.NotNull("database", database); Initialize(database); }