From 0c488d3b03295f14c0ae93753401fad7d69df7a1 Mon Sep 17 00:00:00 2001 From: Donatas Adamonis Date: Tue, 30 May 2017 18:38:13 +0200 Subject: unitest --- ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs b/ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs index 52bcb27..bd66b06 100644 --- a/ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs +++ b/ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs @@ -25,14 +25,15 @@ namespace ApartmentManagerUnitTestProject [TestMethod] public void TestMethod2() { + ApartmentViewModel model = new ApartmentViewModel(); - model.UserSingleton.CurrentUser.ApartmentId = 1; + model.UserSingleton.CurrentUser.ApartmentId = 0; model.NewResident.FirstName = "asd"; model.NewResident.LastName = "lopas"; model.ApartmentHandler.GetApartmentResidents(); var currentDefects = model.CatalogSingleton.Residents.Count; //test// - //model.ApartmentHandler.CreateResident(); + model.ApartmentHandler.CreateResident(); Assert.AreNotEqual(currentDefects, model.CatalogSingleton.Residents); } -- cgit v1.2.3