aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs5
1 files 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);
}