public void Init() { context = TestDataContext.GetContextWithData(); appSettings = new Mock <IOptions <AppSettings> >(); appSettings.SetupGet(x => x.Value) .Returns(new AppSettings { Key = "This_Is_My_Secret_Key" }); userService = new UserService(appSettings.Object, context); }
public void Init() { context = TestDataContext.GetContextWithData(); deliveryService = new DeliveryService(context); }