public void TestInitialize() { this.learnNowContext = new LearnNowContext(); this.resourceMapper = new ResourceMapper( this.learnNowContext); this.resourceViewModel = new ResourceViewModel() { Id = Guid.NewGuid(), GradeId = Guid.NewGuid(), Title = "Test subject", Description = "Test description", ImageUrl = "Https://test.jpg", ResourceType = 1, }; this.resourceEntityModel = new Resource() { Id = Guid.NewGuid(), GradeId = Guid.NewGuid(), Title = "Test subject", Description = "Test description", ImageUrl = "Https://test.jpg", ResourceType = 1, UpdatedBy = Guid.NewGuid(), }; }
/// <summary> /// Initializes a new instance of the <see cref="UnitOfWork"/> class. /// </summary> /// <param name="context">context to be used with database and can be used to query and to save instance of entities.</param> public UnitOfWork(LearnNowContext context) { this.context = context; }