コード例 #1
0
 public void SetUp()
 {
     _messagePublisher = A.Fake <IMessagePublisher>();
     _dao        = A.Fake <ISpfApiDao>();
     _config     = A.Fake <ISpfApiConfig>();
     _spfService = new SpfService(_messagePublisher, _dao, _config);
 }
コード例 #2
0
 public void SetUp()
 {
     _dao = A.Fake <ISpfApiDao>();
     _messagePublisher = A.Fake <IMessagePublisher>();
     _config           = A.Fake <ISpfApiConfig>();
     _spfService       = A.Fake <ISpfService>();
     _log = A.Fake <ILogger <SpfController> >();
     _sut = new SpfController(_dao, _messagePublisher, _config, _spfService);
 }
コード例 #3
0
 public SpfController(ISpfApiDao dao,
                      IMessagePublisher messagePublisher,
                      ISpfApiConfig config,
                      ISpfService spfService)
 {
     _dao = dao;
     _messagePublisher = messagePublisher;
     _config           = config;
     _spfService       = spfService;
 }
コード例 #4
0
 public SpfService(IMessagePublisher messagePublisher, ISpfApiDao dao, ISpfApiConfig config)
 {
     _messagePublisher = messagePublisher;
     _dao    = dao;
     _config = config;
 }