Exemplo n.º 1
0
        public void Test_ProductionCalendarService_DeleteRecord()
        {
            RepositoryTestHelper.SetUpDeleteById <ProductionCalendarRecord, IProductionCalendarRepository>(_repositoryMock);

            var svc = new ProductionCalendarService(_repositoryFactoryMock.Object);

            svc.DeleteRecord(1);

            _repositoryMock.Verify(m => m.Delete(1), Times.Once());
        }