Exemple #1
0
 private Fixture()
 {
     gateway = new Mock <ICloudGateway>(MockBehavior.Strict);
     root    = new RootDirectoryInfoContract(Path.DirectorySeparatorChar.ToString(), "2015-01-01 00:00:00".ToDateTime(), "2015-01-01 00:00:00".ToDateTime())
     {
         Drive = new DriveInfoContract(MOUNT_POINT, FREE_SPACE, USED_SPACE)
     };
 }
Exemple #2
0
        private RootDirectoryInfoContract SetupGetRoot()
        {
            var root = new RootDirectoryInfoContract(@"\", DateTimeOffset.FromFileTime(0), DateTimeOffset.FromFileTime(0))
            {
                Drive = new DriveInfoContract("Z:", null, null)
            };

            _driveMock
            .Setup(d => d.GetRoot())
            .Returns(root);
            return(root);
        }