예제 #1
0
        public void LogoutSuccess()
        {
            mockService.Setup(_ => _.Logout()).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Logout();

            Assert.NotNull(result);
        }
예제 #2
0
        public void DeleteSuccess()
        {
            mockService.Setup(_ => _.Delete(It.IsAny <string>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Delete("2e173ee3-be45-46bd-a355-c9182a2a41ec");

            Assert.NotNull(result);
        }
예제 #3
0
        public void GetAWSUploadKeySuccess()
        {
            mockService.Setup(_ => _.GetAWSUploadKey()).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.GetAWSUploadKey();

            Assert.NotNull(result);
        }
예제 #4
0
        public void RetriveSuccess()
        {
            mockService.Setup(_ => _.Retrieve(It.IsAny <string>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Retrieve(Guid.NewGuid().ToString());

            Assert.NotNull(result);
        }
예제 #5
0
        public void CreateStorageSuccess()
        {
            mockService.Setup(_ => _.Add(It.IsAny <AddStorageParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Add(StorageMockParameter.CreateValidStorageParameter());

            Assert.NotNull(result);
        }
예제 #6
0
        public void UpdateSuccess()
        {
            mockService.Setup(_ => _.Update(It.IsAny <UpdateEntityParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Update(EntityMockParameter.UpdateValidEntityParameter());

            Assert.NotNull(result);
        }
예제 #7
0
        public void ChangePasswordSuccess()
        {
            mockService.Setup(_ => _.ChangePassword(It.IsAny <ChangePasswordParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.ChangePassword(UserMockParamter.ChangePasswordParameter());

            Assert.NotNull(result);
        }
예제 #8
0
        public void StartSuccess()
        {
            mockService.Setup(_ => _.StartFeed(It.IsAny <StartFeedParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.StartFeed(new StartFeedParameter());

            Assert.NotNull(result);
        }
예제 #9
0
        public void RetrieveSuccess()
        {
            mockService.Setup(_ => _.Retrieve(It.IsAny <GetLiveParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Retrieve(new GetLiveParameter());

            Assert.NotNull(result);
        }
예제 #10
0
        public void CreatSuccess()
        {
            mockService.Setup(_ => _.Create(It.IsAny <CreateLiveParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.Create(LiveMockParameter.CreateLiveParameter());

            Assert.NotNull(result);
        }
예제 #11
0
        public void DeleteCategoryRelationSuccess()
        {
            mockService.Setup(_ => _.DeleteRelation(It.IsAny <CategoryRelationParameter>())).Returns(BaseMockResponse.SuccessResponse());
            var result = mockService.Object.DeleteRelation(CategoryMockParameter.CreateValidCategoryRelationParameter());

            Assert.NotNull(result);
        }