Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Data.Entity;
- using Moq;
- using Xunit;
- namespace Freelancers.Infrastructure.Tests.UnitOfWork
- {
- public class UnitOfWorkFacts
- {
- public class Commit
- {
- [Fact]
- public void WillCallSaveChanges()
- {
- var contextMock = new Mock<DbContext>();
- var unitOfWork = new Infrastructure.UnitOfWork.UnitOfWork(contextMock.Object);
- unitOfWork.Commit();
- contextMock.Verify(x => x.SaveChanges());
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment