Example #1
0
        public DiffService_GetDifferencesAsync_Should()
        {
            this.contextOptions = new DbContextOptionsBuilder <DifferenceContext>()
                                  .UseInMemoryDatabase("InMemoryDbForTesting").Options;
            var context = new DifferenceContext(this.contextOptions);

            DifferenceAsyncRepository differenceAsyncRepository = new DifferenceAsyncRepository(context);
            DifferenceUnitOfWork      differenceUnitOfWork      = new DifferenceUnitOfWork(context, differenceAsyncRepository);

            var diffsFinder = new DiffsFinder();

            this.diffService = new DiffService(diffsFinder, differenceUnitOfWork);
        }
Example #2
0
 public DiffsFinder_Find_Should()
 {
     this.diffsFinder = new DiffsFinder();
 }