Beispiel #1
0
        private DatabaseInfo CreateTestDatabase()
        {
            var builder = DatabaseInfoTestDataBuilder.CreateDefault()
                          .Add(RackTestDataBuilder.CreateDefault()
                               .Add(MountPointTestDataBuilder.CreateWindowsDefault())
                               .Add(MountPointTestDataBuilder.CreateLinuxDefault())
                               )
                          .Add(RackTestDataBuilder.CreateDefault().WithName("Second Test Rack")
                               .Add(MountPointTestDataBuilder.CreateWindowsDefault().WithPath(@"D:\TEMP"))
                               );

            return(builder.Build());
        }
Beispiel #2
0
 public RackTestDataBuilder Add(MountPointTestDataBuilder mountPoint)
 {
     MountPoints.Add(mountPoint);
     return(this);
 }