コード例 #1
0
        public void ConvertModelToEntity_Test()
        {
            // Arrange
            TestKolgraphEntities context = new TestKolgraphEntities();
            var         service          = new BranchService();
            BranchModel model            = GetTestModel();

            // Act
            branch entity = service.ConvertModelToEntity(model);

            // Assert
            Assert.IsNotNull(entity);
            Assert.AreEqual(entity.name, model.Name);
            Assert.AreEqual(entity.isDefault, model.IsDefault);
            Assert.AreEqual(entity.isCurrent, model.IsCurrent);
        }