public void TestGetMeasurementsForGenerator() { //ovaj generator ne postoji u bazi IDbGenerator mockedDb = MockGetMeasurementsForGenerator(-1).Object; Assert.IsNull(mockedDb.GetMeasurementsForGenerator(-1)); }
public void TestGeneratorReturnAll() { IDbGenerator mockedDb = MockReturnAll(GetSampleGenerators()).Object; var result = mockedDb.ReadAll().Count; Assert.NotZero(mockedDb.ReadAll().Count); }
public void TestGetGenerator() { Generator g = new Generator(); IDbGenerator mockedDb = MockGetGenerator(g.Id).Object; Assert.IsNull(mockedDb.GetGenerator(g.Id)); }