示例#1
0
        public void TestGetMeasurementsForGenerator()
        {
            //ovaj generator ne postoji u bazi
            IDbGenerator mockedDb = MockGetMeasurementsForGenerator(-1).Object;

            Assert.IsNull(mockedDb.GetMeasurementsForGenerator(-1));
        }
示例#2
0
        public void TestGeneratorReturnAll()
        {
            IDbGenerator mockedDb = MockReturnAll(GetSampleGenerators()).Object;
            var          result   = mockedDb.ReadAll().Count;

            Assert.NotZero(mockedDb.ReadAll().Count);
        }
示例#3
0
        public void TestGetGenerator()
        {
            Generator    g        = new Generator();
            IDbGenerator mockedDb = MockGetGenerator(g.Id).Object;

            Assert.IsNull(mockedDb.GetGenerator(g.Id));
        }