Exemple #1
0
        public LocalFilePropertyServiceTests()
        {
            PropertiesFilePath = @"C:\Containers\handle\properties.json";

            Directory = Substitute.For <IContainerDirectory>();
            Directory.MapPrivatePath("properties.json").Returns(PropertiesFilePath);

            Clock = Substitute.For <Clock>();

            Container = Substitute.For <IContainer>();
            Container.Directory.Returns(Directory);

            FileSystem = Substitute.For <FileSystemManager>();

            PropertyService = new LocalFilePropertyService(FileSystem, "properties.json", Clock);
        }
        public LocalFilePropertyServiceTests()
        {
            PropertiesFilePath = @"C:\Containers\handle\properties.json";

            Directory = Substitute.For<IContainerDirectory>();
            Directory.MapPrivatePath("properties.json").Returns(PropertiesFilePath);

            Clock = Substitute.For<Clock>();

            Container = Substitute.For<IContainer>();
            Container.Directory.Returns(Directory);

            FileSystem = Substitute.For<FileSystemManager>();

            PropertyService = new LocalFilePropertyService(FileSystem, "properties.json", Clock);
        }