public void Create_saves_a_ProductOption_via_context() { //Arrange var repository = new ProductOptionRepository(_mapper, _mockContext,_logging); var productOption = new core.Models.ProductOption { Id = new Guid(), ProductId = new Guid("de1287c0-4b15-4a7b-9d8a-dd21b3cafec3"), Name = "Rose Gold", Description = "Gold Apple iPhone 6S" }; //Act repository.Create(productOption); var count = _mockContext.ProductOptions.Local.Count; //Assert Assert.AreEqual(count, 4); }