public static void MyClassInitialize(TestContext testContext) { kernel = TestManager.ConfigureNInjectKernel(); userProfileDao = kernel.Get <IUserProfileDao>(); creditCardDao = kernel.Get <ICreditCardDao>(); deliveryDao = kernel.Get <IDeliveryDao>(); }
public DeliveryLogic(IDeliveryDao iDeliveryDao) { NullCheck(iDeliveryDao); deliveryDao = iDeliveryDao; }
public DeliveryService(IDeliveryDao dao, ILogger logger) { _dao = dao ?? throw new ArgumentException(nameof(dao)); _logger = logger ?? throw new ArgumentException(nameof(logger)); }