public void Setup()
        {
            var context = new Domain.DataAccess.MahourContext();

            _PP       = context.PlatformProjectTable.FirstOrDefault();
            _platform = context.PlatformTable.FirstOrDefault();
            _project  = context.ProjectTable.FirstOrDefault();

            if (_platform == null)
            {
                var Platform = new Domain.Models.Platform()
                {
                    ID              = DateTime.Now.Ticks.ToString(),
                    Name            = "test",
                    IconFileAddress = "test Icon"
                };

                context.PlatformTable.Add(Platform);
                _platform = Platform;
            }

            if (_project == null)
            {
                var Project = new Domain.Models.Project()
                {
                    ID = DateTime.Now.Ticks.ToString(),
                    ImageFileAddress = "test",
                    Name             = "test",
                    ShortDescription = "test",
                    Status           = true,
                    TextFileAddress  = "test",
                    State            = "1",
                    TimeToFinish     = 120
                };
                context.ProjectTable.Add(Project);
                context.SaveChanges();
                _project = Project;
            }

            if (_PP == null)
            {
                var PP = new Domain.Models.PlatformProject()
                {
                    ID       = DateTime.Now.Ticks.ToString(),
                    Platform = _platform,
                    Project  = _project
                };

                context.PlatformProjectTable.Add(PP);
                context.SaveChanges();
                _PP = PP;
            }
        }
        public void AssignPlatformToProject()
        {
            _container = EntityContainer.InsertableContainer <Domain.Models.PlatformProject> .ContainerConfig();

            try
            {
                using (var scope = _container.BeginLifetimeScope())
                {
                    var insertablePlatformProject = _container.Resolve <EntityService.Interfaces.IInsertable <Domain.Models.PlatformProject> >();

                    var PP = new Domain.Models.PlatformProject()
                    {
                        PlatformID = _platform.ID,
                        ProjectID  = _project.ID,
                    };

                    insertablePlatformProject.Insert(PP);
                }
            }
            catch (Exception error)
            {
                Assert.Fail(error.Message);
            }
        }