コード例 #1
0
        public void TestcreateInstallation()
        {
            Init();
            EngineerBL ebl = new EngineerBL(mockcrepo, mockerepo, mockirepo);

            InstallationModel myinstallation = new InstallationModel
            {
                installationid = 1,
                customerid     = 0,
                description    = "testinstallation",
                serialno       = "testser",
                latitude       = 33,
                longitude      = 44,
                Measurement    = new List <int> {
                    0
                }
            };

            ebl.createInstallation(myinstallation);
            Assert.AreEqual(2, mockirepo.GetAll().Count);
        }