private async Task AddDesignReference_ShouldWorkFine() { var context = ContextInitializer.InitializeContext(); await this.SeedData(context); this.designBoardServce = new DesignBoardService(context); var designBoard = new DesignBoardCreateInputModel { ProjectId = "bb2bd817-98cd-4cf3-a80a-53ea0cd9c200", CustomerId = new Guid("cb2bd817-98cd-4cf3-a80a-53ea0cd9c200").ToString(), Name = "Test Design Board", }; var designRefernce = new ReferenceInputModel { CustomerId = new Guid("cb2bd817-98cd-4cf3-a80a-53ea0cd9c200").ToString(), ImageUrl = "https://test.test", DesignBoardId = "de2bd817-98cd-4cf3-a80a-53ea0cd9c200", }; await this.designBoardServce.AddDesignBoard(designBoard); var result = await this.designBoardServce.AddDesignReference(designRefernce); Assert.Equal("DesignReference created successfully!", result); }
public ProjectController(UserManager <ApplicationUser> userManager, IProjectService projectService, IAdminService adminService, IReviewService reviewService, IDesignBoardService designBoardService) { this.userManager = userManager; this.projectService = projectService; this.adminService = adminService; this.reviewService = reviewService; this.designBoardService = designBoardService; }
private async Task GetCurrentDesignBoard_ShouldWorkFine() { var context = ContextInitializer.InitializeContext(); await this.SeedData(context); this.designBoardServce = new DesignBoardService(context); var result = await this.designBoardServce.GetCurrentDesignBoard("bb2bd817-98cd-4cf3-a80a-53ea0cd9c330"); Assert.Equal("Test Design Board", result.Name); }
private async Task GetDesignBoardReferences_ShouldWorkFine() { var context = ContextInitializer.InitializeContext(); await this.SeedData(context); this.designBoardServce = new DesignBoardService(context); var result = await this.designBoardServce.GetDesignBoardReferences("bb2bd817-98cd-4cf3-a80a-53ea0cd9c330"); Assert.Equal(1, result.Count); }
public DesignBoardController(IDesignBoardService designBoardService, UserManager <ApplicationUser> userManager) { this.designBoardService = designBoardService; this.userManager = userManager; }
public ReferenceController(IDesignBoardService designBoardService) { this.designBoardService = designBoardService; }