コード例 #1
0
 public void CreateMethod()
 {
     // preparation
     var cosmos       = new Mock.CosmosMock();
     var notification = new Mock.NotificationServiceMock();
     var logger       = new Mock.LoggerMock <UserApi>();
     var userApi      = new UserApi(cosmos, notification, logger);
 }
コード例 #2
0
 public void CreateMethod()
 {
     // preparation
     var notification = new Mock.NotificationServiceMock();
     var validation   = new Mock.ValidationUserServiceMock();
     var logger       = new Mock.LoggerMock <UserApi>();
     var userApi      = new UserApi(notification, validation, logger);
 }
コード例 #3
0
 public void CreateMethod()
 {
     // preparation
     var userRepo     = new Mock <IUserRepository>();
     var notification = new Mock.NotificationServiceMock();
     var infection    = new Mock.InfectionServiceMock();
     var validation   = new Mock.ValidationUserServiceMock();
     var logger       = new Mock.LoggerMock <UserApi>();
     var userApi      = new UserApi(userRepo.Object, notification, infection, validation, logger);
 }
コード例 #4
0
        public void RunMethod()
        {
            // preparation
            var cosmos       = new Mock.CosmosMock();
            var notification = new Mock.NotificationServiceMock();
            var logger       = new Mock.LoggerMock <UserApi>();
            var userApi      = new UserApi(cosmos, notification, logger);
            var context      = new Mock.HttpContextMock();

            // action
            userApi.Run(context.Request);
            // assert
        }
コード例 #5
0
        public void RunMethod(string userUuid)
        {
            // preparation
            var notification = new Mock.NotificationServiceMock();
            var validation   = new Mock.ValidationUserServiceMock();
            var logger       = new Mock.LoggerMock <UserApi>();
            var userApi      = new UserApi(notification, validation, logger);
            var context      = new Mock.HttpContextMock();

            // action
            userApi.Run(context.Request, userUuid);
            // assert
        }
コード例 #6
0
        public void RunMethod(string userUuid, string userMajor, string userMinor)
        {
            // preparation
            var userRepo     = new Mock <IUserRepository>();
            var notification = new Mock.NotificationServiceMock();
            var infection    = new Mock.InfectionServiceMock();
            var validation   = new Mock.ValidationUserServiceMock();
            var logger       = new Mock.LoggerMock <UserApi>();
            var userApi      = new UserApi(userRepo.Object, notification, infection, validation, logger);
            var context      = new Mock.HttpContextMock();

            // action
            userApi.Run(context.Request, userUuid, userMajor, userMinor);
            // assert
        }