예제 #1
0
        [TestInitialize] public override void TestInitialize()
        {
            base.TestInitialize();
            units    = new unitsRepository();
            measures = new measuresRepository();
            data     = GetRandom.Object <MeasureData>();
            var m = new Measure(data);

            measures.Add(m).GetAwaiter();
            addRandomMeasures();
            obj = new testClass(units, measures);
        }
예제 #2
0
        public override void TestInitialize()
        {
            base.TestInitialize(); //kasutab inmemorydb extensionit, mis on malus!
            units    = new unitsRepository();
            measures = new measuresRepository();
            data     = GetRandom.Object <MeasureData>(); //uks data on juba olemas
            var m = new Measure(data);                   //measure sisse ara data

            measures.Add(m).GetAwaiter();
            addRandomMeasures();
            obj = new testClass(units, measures); //annan repository katte
        }