public void TestInitialize() { this.Sub = new TestSubstitutes(); var ctx = this.Sub.Context(); var svc = Substitute.For <IUserService>(); this.ctrl = new AuthController { UserService = svc, Context = ctx, }; }
public void TestInitialize() { this.Sub = new TestSubstitutes(); var svc = new UserService() { Context = this.Sub.Context(), }; this.ctrl = new StatusController { UserService = svc, }; }
public void SetUp() { var securityService = Substitute.For <ISecurityService>(); var tokenService = Substitute.For <ITokenService>(); var notificationService = Substitute.For <INotificationService>(); this.Sub = new TestSubstitutes(); this.svc = new UserService { Context = this.Sub.Context(), SecurityService = securityService, TokenService = tokenService, NotificationService = notificationService, }; }