public void SceneFileCreate_ToDLModelShouldMapToSceneFile()
        {
            var newSceneFile = new SceneFileCreate
            {
                FileID  = 1,
                SceneID = 1
            };
            var result = newSceneFile.ToDLModel();

            Assert.Equal(newSceneFile.FileID, result.FileID);
            Assert.Equal(newSceneFile.SceneID, result.SceneID);
        }
Example #2
0
 public CreatedID CreateSceneFile(SceneFileCreate apiModel)
 {
     return(new CreatedID {
         ID = _aviBL.AddSceneFile(apiModel.ToDLModel()).ID
     });
 }