public PradinioLangoForma(PrekiuRepozitorija prekiuRepozitorija, CekiuRepozitorija cekiuRepozitorija) : this() { if (_cekiuRepozitorija == null) { _cekiuRepozitorija = cekiuRepozitorija; } if (_prekiuRepozitorija == null) { _prekiuRepozitorija = prekiuRepozitorija; } }
public void ValidatePrekesPridejimas() { //--Arrange PrekiuRepozitorija preke = new PrekiuRepozitorija(); preke.PrekiuPridejimas("Batai", "98745", 50); int expected = preke.Retrieve().Count; //--Act int actual = preke.Retrieve().Count; //--Assert Assert.AreEqual(9, actual); }
public PrekesPridejimoForma(PrekiuRepozitorija prekiuRepozitorija) : this() { _prekiuRepozitorija = prekiuRepozitorija; }