public void CreateCustomerShouldCreateCustomer() { using (var context = new Entity.StoreDBContext(options)) { IStoreRepository _repo = new StoreRepoDB(context, new StoreMapper()); _repo.CreateCustomer ( new Model.Customer { CustomerName = "Zach", CustomerEmail = "*****@*****.**" } ); } using (var assertContext = new Entity.StoreDBContext(options)) { var result = assertContext.Customers.FirstOrDefault(customer => customer.CustomerName == "Zach"); Assert.NotNull(result); Assert.Equal("Zach", result.CustomerName); } }