public void UpdateFileContent(IFileContentController fcc, FileContent fc, string fileId)
        {
            string fileContentId = fcc.GetFileContentId(fileId);

            fc.Id = fileContentId;
            fcc.UpdateFileContent(fc);
        }
Exemplo n.º 2
0
        public void GetFileContentIdMockVerify(string id)
        {
            Mock <IDBManager> databaseMock = new Mock <IDBManager>();

            databaseMock.Setup(database => database.GetFileContentId(id)).Verifiable();

            fileContentController = new FileContentController(databaseMock.Object);

            fileContentController.GetFileContentId(id);

            databaseMock.Verify(database => database.GetFileContentId(id), Times.Once);
        }