diff options
author | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-05-30 18:38:13 +0200 |
---|---|---|
committer | Donatas Adamonis <dona0169@edu.easj.dk> | 2017-05-30 18:38:13 +0200 |
commit | 0c488d3b03295f14c0ae93753401fad7d69df7a1 (patch) | |
tree | 2bda404f0ba9869228408be981fe5f595ea78eb4 | |
parent | 89140e0e10c70889f17624c09b4521d77c824956 (diff) |
unitest
-rw-r--r-- | ApartmentManager/ApartmentManagerUnitTestProject/UnitTest.cs | 5 |
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); } |