Пример #1
0
        public void Setup()
        {
            repositoryMock = new Mock <IBillyRepository>();
            repository     = repositoryMock.Object;

            service = new BillyService(repository);
        }
Пример #2
0
 /// <summary>
 /// Creates a new instance of the billy service
 /// </summary>
 /// <param name="billyRepository">billy repository dependency injection</param>
 public BillyService(IBillyRepository billyRepository)
 {
     this.billyRepository = billyRepository;
 }